#ifndef __TIMESESSION__
#define __TIMESESSION__

#include <e32base.h>
#include "Observer.h"

class CMySession : public CSession2
{
public: 
	static CMySession* NewL(CMyServer& aServer);
	static CMySession* NewLC(CMyServer& aServer);
	~CMySession();
public: // from CSession
	void ServiceL(const RMessage2& aMessage);
protected:
    TInt DispatchMessageL(const RMessage2& aMessage);
private: 
	CMySession(CMyServer& aServer);
	void ConstructL() ;
	void PanicClient(const RMessage2& aMessage, TInt aPanic) const;
	void UpdatePreferencesL(const RMessage2& aMessage);
	void UpdateAlarmSettingsL(const RMessage2& aMessage);
private: 
	CMyServer& iServer;
};

#endif
